package com.aloha.springframework.context.event;

import com.aloha.springframework.context.ApplicationContext;
import com.aloha.springframework.context.ApplicationEvent;

/**
 * @author DaiZhiHeng
 * @description 基础事件类
 * @date 2023/7/3 22:50
 */
public class ApplicationContextEvent extends ApplicationEvent {

    public ApplicationContextEvent(ApplicationContext source) {
        super(source);
    }

    public final ApplicationContext getApplicationContext() {
        return (ApplicationContext) getSource();
    }
}
